
<h3>中奖名单</h3>

<p-growl [value]="msgs"></p-growl>

<p-confirmDialog></p-confirmDialog>


<div class="card">

    <p-dataTable [value]="winners"
                 selectionMode="none"
                 [rows]="10" [paginator]="true" [pageLinks]="5" [responsive]="true">

        <p-column field="prize.name" header="奖项"></p-column>

        <p-column field="member.code" header="编号"></p-column>
        <p-column field="member.name" header="姓名"></p-column>

        <p-column field="create" header="时间">
            <ng-template let-col let-row="rowData" pTemplate="body">
                {{ row[col.field] | date:'yyyy-MM-dd HH:mm:ss' }}
            </ng-template>
        </p-column>

        <p-column styleClass="col-button">
            <ng-template let-row="rowData" pTemplate="body">
                <button type="button" pButton (click)="onDeleteClick(row)" icon="fa-trash" label="删除"
                        class="ui-button-danger"></button>
            </ng-template>
        </p-column>

    </p-dataTable>

</div>
